<!DOCTYPE html>
<html>
<head>
<title>OnTheQuarter</title>
<link href="/static/base.css" rel="stylesheet" type="text/css" />
<style>
	body{ padding: 20px; }
	td { font-size: 16pt; }
	input { font-size: 16pt; }
</style>
</head>
<body>
<h1>OnTheQuarter Signup</h1>
<form id="UpgradeForm" action="/upgrade" method="POST">
	<table>
		<tr>
			<td>User name:</td>
			<td><input type="text" name="shortname"
				placeholder="User Name (URL compatible)" required
				value="{{.P.ShortName}}" /> </td>
			<td><span id="shortnameAvail"></span></td>
		</tr>
		<tr>
			<td>Email:</td>
			<td><input type="email" name="email"
				placeholder="Email" required
				value="{{.P.Email}}" /> </td>
		</tr>
	</table>
	<input type="submit" value="Sign up" />
</form>
</body>

{{if .CompiledJS}}
	<script src="/static/upgrade.js"></script>
{{else}}
	<script src="/base.js"></script>
	<script src="/deps.js"></script>
	<script>
	goog.require('otq.initUpgrade');
	</script>
{{end}}
<script>
otq.initUpgrade();
</script>
</html>
